package com.salt.modules.sys.app;

import com.salt.common.json.AjaxJson;
import com.salt.core.web.BaseController;
import com.salt.modules.sys.utils.DictUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 字典Controller
 * @author salt
 * @version 2020-11-24
 */
@RestController
@RequestMapping("/app/sys/dict")
public class AppDictController extends BaseController {

	@GetMapping("getDictMap")
	public AjaxJson getDictMap() {
		AjaxJson j = new AjaxJson();
		j.put("dictList", DictUtils.getDictMap());
		return j;
	}


}
